<%-- 
    Document   : login
    Created on : May 22, 2009, 2:14:55 PM
    Author     : ron
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
    </head>
    <body>

    <f:view>
    <h:form id="login">
            <h:messages style="color: red"
                    showDetail="true"/>
            <h:panelGrid columns="2" border="0">
                Username: <h:inputText id="username"
                                       value="#{userManagedBean.username}"/>
                Password: <h:inputSecret id="password"
                                         value="#{userManagedBean.password}"/>
            </h:panelGrid>
            <h:commandButton id="submit"
                             type="submit"
                             value="Login"
                             action="#{userManagedBean.validateUser}"/>
            <br>
            <h:commandLink id="create"
                           value="Create New Account"
                           action="create"/>
        </h:form>
     </f:view>
     </body>
</html>
